<?php 
namespace Admin\Controller;
use Hdphp\Library\Controller;
/**
 * 默认控制器
 */
class IndexController extends CommonController{
	/**
	 * 默认方法
	 */
	public function index(){

		//获得周几?
		$weekday=array(
			'Monday'=>'一',
			'Tuesday'=>'二',
			'Wednesday'=>'三',
			'Thursday'=>'四',
			'Friday'=>'五',
			'Saturday'=>'六',
			'Sunday'=>'日'
		);
		$date=getdate();
		$this->assign('weekday', $weekday[$date['weekday']]);

		$this->display();
	}
	//默认信息
	public function welcome(){

		$this->display();
	}

}






